package com.maas.util.mybatis.jpa.littlenb.annotation.mapper;

import com.littlenb.mybatisjpa.type.SelectorStrategy;

import java.lang.annotation.*;

/**
 * 修改自mybatis-jpa
 * mapper 内方法的注解
 * 使其支持SelectStatementFactory
 * @author zxm
 **/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface DeleteDefinition {

  SelectorStrategy strategy() default SelectorStrategy.NONE;

  /**
   * default id = #{id}
   */
  String where() default "id = #{id}";

}
